package com.abc.robot01.room.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.abc.robot01.room.bean.SystemMessageBean.Companion.TABLE_NAME

@Entity(tableName = TABLE_NAME)
data class SystemMessageBean(

    @ColumnInfo(name = "id")
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,

    @ColumnInfo(name = "success")
    var success: Boolean = true,

    @ColumnInfo(name =  "device")
    var device: String = "",

    @ColumnInfo(name = "name")
    var name: String = "",

    @ColumnInfo(name = "time")
    var time: String = "",
) {
//    fun setAnswer(cmd_Id: String, answerBean: SystemMessageBean) {
//        this.cmd_Id = cmd_Id
//        this.padId = answerBean.padId
//        this.actionId = answerBean.actionId
//        this.eyemotionId = answerBean.eyemotionId
//        this.soundPath = answerBean.soundPath
//        this.ttsText = answerBean.ttsText
//        this.type = answerBean.type
//        this.imgpath = answerBean.imgpath
//    }
    companion object {
        const val TABLE_NAME = "system_message"
    }
}
